package com.njlime.core.helper.dic;


import org.apache.log4j.Logger;

import java.util.Observable;
import java.util.Observer;

/**
 * Created by Dean on 2017-9-7.
 */
public class ObserverListener implements Observer {
    private Logger log = Logger.getLogger(ObserverListener.class);

    @Override
    public void update(Observable o, Object arg) {
        log.info("WatchFilePathTask挂掉");
        WatchFilePathTask run = new WatchFilePathTask();
        run.addObserver(this);
        new Thread(run).start();
        log.info("WatchFilePathTask重启");
    }
}